<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        *{
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: "Poppins",sans-serif;
        }
        .container{
            position: relative;
            width: 100%;
            display: flex;
            justify-content: center;
            align-items: center;
        }
        body{
            display: flex;
            justify-content: center;
            align-items: center;
            min-height: 100vh;
            background-color: rgb(0, 0, 0);
            overflow: hidden;
        }
        .container .card{
            position: absolute;
            width: 240px;
            height: 360px;
            background-color: rgb(17, 188, 235);
            border-radius: 20px;
            display: flex;
            justify-content: center;
            align-items: center;
            color: rgba(0, 0, 0, 0);
            font-size: 8em;
            font-weight: 700;
            border: 10px solid rgba(0, 0, 0, 1);
            transition: .5s;
            /* 伸展展示时间 */
            transform-origin: 50% 100%;
            filter: hue-rotate(calc(var(--i)*60deg));
            box-shadow: 0 15px 50px rgba(0, 0, 0, .1);
        }
        .container:hover .card{
            transform: rotate(calc(var(--i)*5deg))
                       translate(calc(var(--i)*125px),-50px);
            box-shadow: 0 15px 50px rgba(0, 0, 0, .25);
            color: rgba(0, 0, 0,.25);
            cursor: pointer;
        }
        .container:active .card:not(:active){
            background-color: #333;
        }
        .container .card:active{
            translate:calc(var(--i) * 20px) -50px ;
            z-index: 999;
        }
    </style>
</head>
<body>
    <div class="container">
        <div class="card" style="--i:-4">1</div>
        <div class="card" style="--i:-3">2</div>
        <div class="card" style="--i:-2">3</div>
        <div class="card" style="--i:-1">4</div>
        <div class="card" style="--i:0">5</div>
        <div class="card" style="--i:1">6</div>
        <div class="card" style="--i:2">7</div>
        <div class="card" style="--i:3">8</div>
        <div class="card" style="--i:4">9</div>
    </div>

</body>
</html>